package com.xiyue.server.service;


import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sport.model.dto.Option;
import com.sport.model.entity.SysUser;

import java.util.List;

public interface SysUserService extends IService<SysUser> {
    int addSysUser(SysUser sysUser);

    List<Option> getRoles(String id);

    void insertRoles(String id, List<Object> roleIds);

    void deleteRole(String id);

    List<String> listRoleByUserId(String userId);

    List<String> listPermissionByRoleCode(String roleCode);

    List<JSONObject> listMenuByUserId();

}
